import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:何人亮
 * Date:2024-05-04
 * 16:18
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("请输入两个整数" );
        Scanner scan=new Scanner(System.in);
        int a= scan.nextInt();
        int b= scan.nextInt();
        System.out.println("请输入三个小数" );
        double c= scan.nextDouble();
        double d= scan.nextDouble();
        double e= scan.nextDouble();
        System.out.println(add(a,b));
        System.out.println(add(c,d,e));
    }
    public static int add(int a,int b){
        return a+b;
    }
    public static double add(double c,double d,double e ){
        return c+d+e;
    }
}
